import request from '@/utils/request'

// 查询学员班级列表
export function listTpye(query) {
  return request({
    url: '/school/tpye/list',
    method: 'get',
    params: query
  })
}

// 查询学员班级详细
export function getTpye(id) {
  return request({
    url: '/school/tpye/' + id,
    method: 'get'
  })
}

// 新增学员班级
export function addTpye(data) {
  return request({
    url: '/school/tpye',
    method: 'post',
    data: data
  })
}

// 修改学员班级
export function updateTpye(data) {
  return request({
    url: '/school/tpye',
    method: 'put',
    data: data
  })
}

// 删除学员班级
export function delTpye(id) {
  return request({
    url: '/school/tpye/' + id,
    method: 'delete'
  })
}
